package com.shardingdemo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author example
 * @since 2025-07-17
 */
@Data
@TableName("tb_order")
public class TbOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId("order_id")
    private String orderId;

    /**
     * 产品
     */
    @TableField("product")
    private String product;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 用户名称
     */
    @TableField("user_name")
    private String userName;

}  